package businessServlets;

import java.io.IOException;
import javax.servlet.http.*;

import controller.Controller;

@SuppressWarnings("serial")
public class DeleteOrderBusiness extends HttpServlet {
	public void doPost(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {
		String userName = (String) req.getSession().getAttribute("userNameBusiness");
		int orderID = Integer.parseInt(req.getParameter("orderID"));
		Controller controller = Controller.getInstance();
		controller.deleteOrder(userName,orderID);
	}
}
